<template>
  <el-container class="home">
    <!-- 头部 -->
    <el-header>
      <Header/>
    </el-header>

    <!-- 左侧导航和二级路由 -->
    <el-container>
      <el-aside width="200px">
        <Nav/>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
  import Header from '@/components/header.vue'
  import Nav from "@/components/nav.vue";
  export default {
    name: 'Home',
    components: {
      Header,
      Nav
    },
    data() {
      return {
        
      }
    },
    methods: {
      
    },
  }
</script>

<style lang="less" scoped>
.home {
  height: 100vh;
  color: #fff;

  .el-header {
    background-color: #5a5858;
    padding: 0;
  }

  .el-aside {
    height: 100%;
    background-color: #5a5858;
  }

  .el-main {
    background-color: #ccc;
  }
}
</style>
